//
//  HWMaiHaoCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/9/28.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWMaiHaoCell.h"

@interface HWMaiHaoCell()


@end

@implementation HWMaiHaoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
        
    }
    
    
    return  self;
    
}

- (void)setupUI {
    
    self.miaoShuLabel  = [[UILabel alloc]initWithFrame:CGRectMake(16, 0, 200, 39)];
    self.miaoShuLabel.text = @"添加游戏";
    self.miaoShuLabel.font = [UIFont systemFontOfSize:13];
    self.miaoShuLabel.textColor = RGB(50, 50, 50);
    [self.contentView addSubview: self.miaoShuLabel];
    
    self.nameTextField = [[UITextField alloc]initWithFrame:CGRectMake(kScreenW-200-27, 0, 200, 39)];
    self.nameTextField.placeholder = @"请选择游戏";
   // self.nameTextField.
    
    NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:@"搜索" attributes:
         @{NSForegroundColorAttributeName:RGB(102, 102, 102),
           NSFontAttributeName:[UIFont boldSystemFontOfSize:12]}
         ];
    self.nameTextField.attributedPlaceholder  = attrString;
    
    
    
    self.nameTextField.font = [UIFont systemFontOfSize:12];
    self.nameTextField.textAlignment = NSTextAlignmentRight;
  
    
    [self.contentView addSubview:self.nameTextField];
    
    

    
}

@end
